﻿@{
    Layout = null;
}

<html>
	<head>
		<meta charset="utf-8" />
		<title>登录</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="/Content/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/Content/assets/css/font-awesome.min.css" />
		<link rel="stylesheet" href="/Content/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/Content/assets/css/ace-rtl.min.css" />
	    <script type="text/javascript" src="/Content/assets/js/jquery-2.0.3.min.js"></script>
	    <script type="text/javascript" src="/Content/assets/js/jquery.backstretch.min.js"></script>
	    <script type="text/javascript">
    	    $(function() {
    	        $.backstretch([
    	        "/Content/img/1.jpg",
    	        "/Content/img/3.jpg",
    	        "/Content/img/4.jpg"],
    	        {
    	            fade: 600,
    	            duration: 3000
    	        });
    	    });

    	</script>
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="/Content/assets/css/ace-ie.min.css" />
		<![endif]-->
		<!--[if lt IE 9]>
		<script src="/Content/assets/js/html5shiv.js"></script>
		<script src="/Content/assets/js/respond.min.js"></script>
		<![endif]-->
	    <style type="text/css">
            #tit {
                font-family: Segoe UI, Verdana, sans-serif;
                font-weight: bold;
                font-size: 35px;
                line-height: 50px;
                text-shadow: -3px 0px 4px #006;
            }
        </style>
	</head>

	<body class="login-layout">
		<div class="main-container">
			<div class="main-content">
				<div class="row">
					<div class="col-sm-10 col-sm-offset-1">
						<div class="login-container">
							<div class="center">
								<h1>
									<i class="icon-comments green"></i>
									<span class="red"></span>
									<span class="white" id="tit">微信公众号管理系统</span>
								</h1>
								<h4 class="blue"></h4>
							</div>

							<div class="space-6"></div>

							<div class="position-relative">
								<div id="login-box" class="login-box visible widget-box no-border">
									<div class="widget-body">
										<div class="widget-main">
											<h4 class="header blue lighter bigger">
												<i class="icon-coffee green"></i>
												请输入账号密码
											</h4>

											<div class="space-6"></div>

											<form action="/welcome/login" method="POST">
												<fieldset>
													<label class="block clearfix">
														<span class="block input-icon input-icon-right">
															<input type="text" name="Aname" class="form-control" placeholder="账号" />
															<i class="icon-user"></i>
														</span>
													</label>

													<label class="block clearfix">
														<span class="block input-icon input-icon-right">
															<input type="password" name="Apass" class="form-control" placeholder="密码" />
															<i class="icon-lock"></i>
														</span>
													</label>

													<div class="space"></div>

													<div class="clearfix">
                                                        <label class="inline">
															<span id="msg-span" class="red" ></span>
														</label>
														<button type="submit" class="width-35 pull-right btn btn-sm btn-primary">
															<i class="icon-key"></i>
															登陆
														</button>
													</div>

													<div class="space-4"></div>
												</fieldset>
											</form>
										</div><!-- /widget-main -->
                                        <div class="toolbar clearfix" style="text-align: center;margin:0 auto;">
                                            <div style="float:none;text-align: center;font-size: 16px;color: white;">
                                                2014<a target="_blank" href="http://ikkong.com" style="color:white;text-decoration: none;">&copy; IKKONG</a>
                                            </div>
										</div>
									</div><!-- /widget-body -->
								</div><!-- /login-box -->
							</div><!-- /position-relative -->
						</div>
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div>
		</div><!-- /.main-container -->

		<!-- basic scripts -->
	    <script type="text/javascript">
    	    function show_box(id) {
    	        jQuery('.widget-box.visible').removeClass('visible');
    	        jQuery('#' + id).addClass('visible');
    	    }
    	</script>
        
	    <script type="text/javascript">
    	    jQuery(function ($) {
    	        var msg = "@ViewBag.msg";
    	        if (msg != "ok") {
    	            $("#msg-span").html(msg);
    	        } else {
    	            $("#msg-span").html("登陆成功，正在跳转……");
    	            window.location = "/welcome/index";
    	        }
    	    });
    	</script>
	
	</body>
</html>

